package com.zykj.evaluation.model

import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName


@Entity(tableName = "todo_task")
data class TodoTask(
    val topicId: Int,
    val topicName: String,
    val testPagerId: Int = 0,
    val testPagerName: String,
    val address: String,
    val testTips: String,
    @Ignore
    val serialNum: Int,
    @Ignore
    val isCanReCommit: Boolean,
    @Ignore
    val correctWithSelf: Boolean,
    // 0:不公布  1:答题时  2:订正时  3:订正完成  4:测评结束时
    @Ignore
    val whenShowAnswer: Int = -1,
    @Ignore
    val whenShowMicroLesson: Int = -1,
    @Ignore
    val examState: Int = 0,
    @Ignore
    val answeringUrge: Int = 0,
    @Ignore
    val revisingUrge: Int = 0,
    @Ignore
    val specificTrainingType: Int = 0,
    val examId: Int = 0,
    val examName: String,
    val examTips: String,
    val noQstStem: Boolean,
    val answerSheet: Boolean,
    val answerPad: Boolean,
    val qstCount: Int = 0,
    val score: Int = 0,
    val startTime: String?,
    val creationTime: String,
    val endTime: String,
    @PrimaryKey
    val id: Int = 0,
    val isRead: Boolean?,
    val userId: Int,
    @SerializedName(value = "isExempted", alternate = ["IsExempted"])
    val isExempted: Boolean,

    @Ignore
    val correctOnline: Boolean, // 网阅

    @Ignore
    val isTaskExpired: Boolean, // 超时,

    @Ignore
    val correctOnlineState: Int = 0 // 测评公布状态 3公布给教师，4公布给学生
)
